<?
session_start();

if($_SESSION['is_login'] == 1){

	$id = $_REQUEST['indexObj'];
	$name = $_REQUEST['objName'];
	$file = "file_".$id;
	
	move_uploaded_file($_FILES["$file"]["tmp_name"], "tmp/" . $name);	
}

header("Location: ".$_REQUEST["returnUrl"]);

?>